package sprites;

import java.awt.image.BufferedImage;
import java.util.Random;

import com.golden.gamedev.GameObject;

/**
 * A bubble attached to Bob, waiting to be fired.
 */
public class EmptyBubble extends Bubble{

	
	public EmptyBubble(GameObject owner, BufferedImage[] images, double x,
			double y) {
		super(owner, images, x, y);
	}
	
	@Override
    public void update(long elapsedTime)
    {
        super.update(elapsedTime);

        /*
         * Make Bob follow the mouse. -23 compensates for Bob's width when the
         * mouse is near the screen edges.
         */
        setX(myOwner.getMouseX() - 23);
        
        if(myOwner.click()){
        	this.setVerticalSpeed(-1);
        }
        
    }
	
	@Override
	public void bob()
	{
	    /*
	     * These aren't supposed to bob.
	     */
	    return;
	}

}
